package com.vf.admin.miaodong.service.impl;

import com.vf.admin.common.splitpage.SplitPageBean;
import com.vf.admin.miaodong.dao.AfterGameGiftRecordDao;
import com.vf.admin.miaodong.entity.AppGameGiftRecord;
import com.vf.admin.miaodong.service.AfterGameGiftRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 砸蛋游戏记录
 */
@Service
public class AfterGameGiftRecordServiceImpl implements AfterGameGiftRecordService {

    @Autowired
    AfterGameGiftRecordDao afterGameGiftRecordDao;

    @Override
    public List<AppGameGiftRecord> list(Map<String, Object> paraMap, SplitPageBean splitPage) {
        return afterGameGiftRecordDao.list(paraMap, splitPage);
    }

    @Override
    public AppGameGiftRecord get(Integer id) {
        return afterGameGiftRecordDao.get(id);
    }

    @Override
    public void save(AppGameGiftRecord haoYou) {
        afterGameGiftRecordDao.save(haoYou);
    }

    @Override
    public void del(Integer id) {
        afterGameGiftRecordDao.del(id);
    }

    @Override
    public Long findFlow(String roomid, Integer userid) {
        return afterGameGiftRecordDao.findFlow(roomid,userid);
    }
}
